package com.cloudsigns.factorymanager2.produce.activity.produce_team;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.BaseActivity;
import com.cloudsigns.factorymanager2.R;
import com.cloudsigns.factorymanager2.engineering.customview.ListViewForScrollView;
import com.cloudsigns.factorymanager2.produce.adapter.produce_team.ProduceTeamReceiveHandoverOrderAdapter;

public class ProduceTeamReceiveHandoverOrderActivity extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private TextView tv_workpart_name, tv_product_name, tv_engineering_name;
    private ImageView img_arrow_down;
    private LinearLayout ll_content;
    private ListViewForScrollView listView;
    private Button btn_handover_completed;

    private ProduceTeamReceiveHandoverOrderAdapter adapter;

    // 验收 跳转界面 ProduceTeamHandoverAcceptanceActivity

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.layout_produce_team_receive_handover_order);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back = findViewById(R.id.rl_back);
        tv_title = findViewById(R.id.tv_title);
        tv_workpart_name = findViewById(R.id.tv_workpart_name);
        tv_product_name = findViewById(R.id.tv_product_name);
        tv_engineering_name = findViewById(R.id.tv_engineering_name);
        img_arrow_down = findViewById(R.id.img_arrow_down);
        ll_content = findViewById(R.id.ll_content);
        listView = findViewById(R.id.listView);
        btn_handover_completed = findViewById(R.id.btn_handover_completed);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        tv_title.setText(getResources().getString(R.string.receive_handover_order));

        adapter=new ProduceTeamReceiveHandoverOrderAdapter(this);
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        btn_handover_completed.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View view) {
        switch (view.getId()) {
            case R.id.rl_back:
                finish();
                break;
            // 交接完结
            case R.id.btn_handover_completed:
                break;
        }
    }
}
